﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Code.BLL;
using System.ComponentModel;
using Code.Commen;
using System.Web.Mvc;
using Code.Models;

namespace QianBuo.Lottery.Web.Models.Scheme
{
    [Serializable]
    public class DefaultModel
    {
        public DefaultModel()
        {
            type = Type.Normal;
        }
        public class Where
        {
            [DisplayName("彩种")]
            /// <summary>
            /// 当前选择的彩种
            /// </summary>
            public int? LotteryID { get; set; }
            [DisplayName("状态")]
            /// <summary>
            /// 状态
            /// </summary>
            public short? State { get; set; }
            [DisplayName("期号")]
            /// <summary>
            /// 期号ID
            /// </summary>
            public long? IssueID { get; set; }
            [DisplayName("奖金模式")]
            /// <summary>
            /// 奖金模式ID
            /// </summary>
            public int? WinModelID { get; set; }
            [DisplayName("元角模式")]
            /// <summary>
            /// 元角模式
            /// </summary>
            public decimal? ConsumptionRatio { get; set; }
        }
        public enum Type
        { 
            /// <summary>
            /// 正常
            /// </summary>
            Normal,
            /// <summary>
            /// 自助补奖
            /// </summary>
            SelfOpenWin
        }
        /// <summary>
        /// 所有彩种
        /// </summary>
        public IEnumerable<SelectListItem> LotteryIDs { get; set; }
        /// <summary>
        /// 所有玩法模式
        /// </summary>
        public IEnumerable<SelectListItem> WinModels { get; set; }

        /// <summary>
        /// 所有元角模式
        /// </summary>
        public IEnumerable<SelectListItem> ConsumptionRatios { get; set; }

        public PageInfo pageInfo { get; set; }
        public Where where { get; set; }
        /// <summary>
        /// 彩种详情列表
        /// </summary>
        public IEnumerable<Scheme_Mod> SchemeDetail { get; set; }

        /// <summary>
        /// 当前查询类型
        /// </summary>
        public Type type { get; set; }
    }
    [Serializable]
    public class DetailModel
    {
        public Guid? SchemeID { get; set; }
        public PageInfo pageInfo { get; set; }
        public IEnumerable<SchemeDetail_Mod> DetailList { get; set; }
        public DefaultModel.Where where { get; set; }
        public int SI_Pg { get; set; }
        public Scheme_Mod Scheme { get; set; }

        public IEnumerable<ChaseDetail_Mod> ChaseDetailList { get; set; }
    }

}